﻿IF EXISTS (SELECT * FROM sysobjects WHERE type = 'P' AND name = 'GetDetallePedidoByIdPedido')
	BEGIN
		DROP  Procedure  GetDetallePedidoByIdPedido
	END

GO

CREATE Procedure GetDetallePedidoByIdPedido

	(
		@idPedido int
	)

AS

BEGIN
	SET NOCOUNT ON
	
	SELECT
	[Cantidad],
	[Descripcion],
	[Estado],
	[IdBien],
	[IdPedido]
	FROM [DetallePedido]
	WHERE [IdPedido] = @idPedido

	SET NOCOUNT OFF
END

GO


GRANT EXEC ON GetDetallePedidoByIdPedido TO PUBLIC

GO


